INCLUDES = -I$(top_builddir)/src 
CPPFLAGS = -D"_GLIBCXX_DEBUG=1"
CFLAGS = -g
CXXFLAGS = -g
check_PROGRAMS = test_sparrow 
check_PROGRAMS += test_util
check_PROGRAMS += test_http_parser
check_PROGRAMS += test_variant

TESTS = $(check_PROGRAMS) 

test_sparrow_SOURCES = test_sparrow.cpp
test_variant_SOURCES = test_variant.cpp
test_util_SOURCES = test_util.cpp
test_http_parser_SOURCES = test_http_parser.cpp


LDADD = -lsparrow -lpthread -levent
LDFLAGS = -L$(top_builddir)/src/sparrow/.libs
LDFLAGS += -L$(top_builddir)/third-party/lib

test_sparrow_LDADD = $(LDADD)
test_sparrow_LDFLAGS = $(LDFLAGS)

test_variant_LDADD = $(LDADD)
test_variant_LDFLAGS = $(LDFLAGS)

test_util_LDADD = $(LDADD)
test_util_LDFLAGS = $(LDFLAGS)

test_http_parser_LDADD = $(LDADD)
test_http_parser_LDFLAGS = $(LDFLAGS)
